import {
  Button, Icon, Loading, Image, Tabbar, TabbarItem,
  Tabs, Tab, swipe, swipeItem,
} from 'vant';

const vantUIs = [Button, Icon, Loading, Image, Tabbar, TabbarItem,
  Tabs, Tab, swipe, swipeItem];

export default {
  install(Vue) {
    vantUIs.forEach((vantUI) => {
      Vue.component(vantUI.name, vantUI);
    });
  },
};
